<template>
    <div class="tools-detail-container">
        <div class="header">
            <div class="container">
                <div class="header-content">
                    <h1 class="main-title">服务价格表</h1>
                </div>
            </div>
        </div>

        <div class="container">
            <div class="tools-package">
                <div class="package-header">
                    <div class="package-title">
                        <i class="fas fa-toolbox"></i> 工具包服务
                    </div>
                </div>

                <div class="package-content">
                    <div class="package-item">
                        <div class="package-item-title">《需求定位工具包》</div>
                        <div class="package-item-price">9.9元</div>
                    </div>
                    <div class="package-item special-item">
                        <div class="package-item-title">《理性决策工具包》</div>
                        <div class="package-item-price">69元</div>
                    </div>
                    <div class="package-item">
                        <div class="package-item-title">《安全落地工具包》</div>
                        <div class="package-item-price">99元</div>
                    </div>
                    <div class="package-item special-item" style="border-bottom: none;">
                        <div class="package-item-title special">《全套工具包套餐》</div>
                        <div class="package-item-price special">169元</div>
                    </div>
                </div>
            </div>

            <div class="tools-package">
                <div class="package-header">
                    <div class="package-title">
                        <i class="fas fa-users"></i> 人工服务
                    </div>
                </div>

                <div class="package-content">
                    <div class="package-item">
                        <div class="package-item-title">《1V1定位护航服务》</div>
                        <div class="package-item-price">69元</div>
                    </div>
                    <div class="package-item special-item">
                        <div class="package-item-title">《1V1优选护航服务》</div>
                        <div class="package-item-price">199元</div>
                    </div>
                    <div class="package-item">
                        <div class="package-item-title">《1V1线上施工陪跑》</div>
                        <div class="package-item-price">990元起</div>
                    </div>
                </div>
            </div>
        </div>
        <div class="tools-actions">
            <el-button type="primary" size="large" class="tool-action-btn dna-btn">
                购买或预约服务请咨询客服
            </el-button>
        </div>

        <div class="footer">
            <el-button type="primary" size="large" class="backBtn" @click="backToHome">
                返回首页
            </el-button>
        </div>
    </div>
</template>

<script>
export default {
    name: 'ToolsDetailView',
    methods: {
        goToDnaTest() {
            this.$router.push('/dna-test')
        },
        goToComparison() {
            this.$router.push('/company-comparison')
        },
        backToHome() {
            this.$router.push('/')
        }
    }
}
</script>

<style scoped>
/* 工具包详情页样式 */
.tools-detail-container {
    min-height: 100vh;
    padding-bottom: 70px;
    background: #f9f9f9;
    color: var(--text-dark);
    line-height: 1.5;
}

.container {
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

.header {
    background: var(--primary-color);
    color: white;
    padding: 12px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-medium);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.main-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sub-title {
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.tools-package {
    margin: 20px 0;
    position: relative;
    animation: fadeIn 0.5s ease forwards;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.package-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.package-title {
    font-size: 12px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.package-title i {
    margin-right: 14px;
    font-size: 14px;
}

.package-content {
    background: white;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-weight: bold;
}

.special-item {
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.package-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
    line-height: 44px;
}

.special {
    color: #ff0000 !important;
}

.package-item-title {
    color: #2e7d32;
    font-size: 12px;
    padding-left: 12px;
}

.package-item-price {
    color: #000;
    font-weight: bold;
    min-width: 100px;
    font-size: 12px;
}

.tool-section {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e0e0e0;
    position: relative;
}

.tool-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tool-section h4 {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.tool-section h4 i {
    margin-right: 8px;
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.tool-section p {
    font-size: 12px;
    color: var(--text-medium);
    padding-left: 28px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.tool-section p:last-child {
    margin-bottom: 0;
}

.tools-actions {
    display: flex;
    gap: 15px;
    margin: 40px 0;
    padding: 0 15px;
    box-sizing: border-box;
}
.backBtn{
    background-color: #2e7d32;
    border-radius: 8px;
}
.tool-action-btn {
    background: linear-gradient(to bottom, #e8f5e9, #c8e6c9);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    padding: 24px 0;
    border-radius: 12px;
    color: #333;
}

.comparison-btn {
    margin-left: 0 !important;
}

.tool-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

.tool-action-btn i {
    font-size: 18px;
}

.disclaimer {
    background: #f5f5f5;
    padding: 10px;
    margin: 16px 0;
    border-radius: 8px;
    font-size: 10px;
    color: #ff0000;
    line-height: 1.4;
    text-align: center;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    text-align: center;
    padding: 10px 20px;
}

.nav-buttons {
    margin-bottom: 5px;
}

.copyright {
    font-size: 12px;
    color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tools-actions {
        flex-direction: column;
        gap: 10px;
    }

    .tool-action-btn {
        width: 100% !important;
    }

    .main-title {
        font-size: 20px;
    }

    .sub-title {
        font-size: 11px;
    }
}

@media (min-width: 769px) {
    .tools-actions {
        justify-content: center;
        gap: 20px;
    }

    .tool-action-btn {
        max-width: 200px;
    }
}
</style>